package com.mpgame.core.utils;

public class MRules {
    public static int getReinforcedValue(int propValue, int reinforceLevel){
        double mul = 1.0f;
        if(reinforceLevel > 0) mul = reinforceLevel * 0.5 + 1.0;
        else if(reinforceLevel < 0) mul = 1.0 - reinforceLevel * 0.15;
        return (int)(mul * propValue);
    }
    public static double getReinforcedValueDouble(double propValue, int reinforceLevel){
        double mul = 1.0f;
        if(reinforceLevel > 0) mul = reinforceLevel * 0.5 + 1.0;
        else if(reinforceLevel < 0) mul = 1.0 - reinforceLevel * 0.15;
        return mul * propValue;
    }
}
